<script src="<?php echo $this->baseUrl();?>/js/record.js"></script>
<div style="margin: 40px 0; text-align: center;">
<?php if(count($this->data)): ?>
    <table class="table table-bordered table-striped">
        <tr>
            <th>标   签</th>
            <th>账   号</th>
            <th>密   码</th>
            <th>操   作</th>
        </tr>
    <?php foreach($this->data as $record) :?>
        <tr>
            <td><?php echo $record['count_tag']; ?></td>
            <td><?php echo $record['count_name']; ?></td>
            <td><?php echo $record['count_passwd']; ?></td>
            <td>
                <a href="<?php echo $this->url(array('controller' => 'index', 'action' => 'editrecord', 'id' => $record['id']));?>">编 辑</a>
                <a style="margin-left: 5px" href="javascript:;" onclick="recordList.delRecord(<?php echo $record['id'];?>)">删 除</a>
            </td>
        </tr>
    <?php endforeach?>
    </table>
    <?php 
        if(!empty($this->search)) 
        {
            echo $this->paginationControl($this->paginator, 'Elastic', 'index/pagelist.phtml',array('requestParams' => array('search' => $this->search))); 
        }
        else
        {
            echo $this->paginationControl($this->paginator, 'Elastic', 'index/pagelist.phtml',array('requestParams' => array()));
        }
    ?>
    <?php else : ?>
    无记录
<?php endif; ?>
</div>
